﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using UserCenter.Models;

namespace UserCenter.Controllers
{
    public class UserController : Controller
    {
        //
        // GET: /UserInfo/
       
        public ActionResult Index()
        {
            return View();
        }
        public ActionResult Profile()
        {
            return View();
        }

         [Authorize]
        public ActionResult Edit()
        {
            EditUserInfoModel model = new EditUserInfoModel()
            {
                Birthday = DateTime.Today,
                Introduction = "这家伙很懒,什么都没留下.",
                NickName = "",
                Sex = Sex.None,
                Signature = "",
                UserName = User.Identity.Name,
                 IconFileName="user.jpg",
            };

            
            return View(model);
        }

    }
}
